package com.example.a10928.weifriend.http.api.base;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class ActivityShopBean {


    /**
     * status_code : 200
     * message : 获取活动
     * data : [{"id":31,"title":"系统管理","need_people":100,"join_people":0,"content":"内容","win_code":null,"is_end":0,"is_begin":1,"created_at":"2019-01-03 16:08:37","updated_at":"2019-01-03 13:34:29","deleted_at":null,"images":[{"img_id":4,"foreign_id":31,"img_url":"/uploads/images/shop//image_1546495695_wZP82IPaUm.jpg"},{"img_id":5,"foreign_id":31,"img_url":"/uploads/images/shop//image_1546495695_TvXdGDV4HU.jpg"}]}]
     */

    private int status_code;
    private String message;
    private List<DataBean> data;

    public int getStatus_code() {
        return status_code;
    }

    public void setStatus_code(int status_code) {
        this.status_code = status_code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 31
         * title : 系统管理
         * need_people : 100
         * join_people : 0
         * content : 内容
         * win_code : null
         * is_end : 0
         * is_begin : 1
         * created_at : 2019-01-03 16:08:37
         * updated_at : 2019-01-03 13:34:29
         * deleted_at : null
         * images : [{"img_id":4,"foreign_id":31,"img_url":"/uploads/images/shop//image_1546495695_wZP82IPaUm.jpg"},{"img_id":5,"foreign_id":31,"img_url":"/uploads/images/shop//image_1546495695_TvXdGDV4HU.jpg"}]
         */

        private int id;
        private String title;
        private int need_people;
        private int join_people;
        private String content;
        private Object win_code;
        private int is_end;
        private int is_begin;
        private String created_at;
        private String updated_at;
        private Object deleted_at;
        private ArrayList<ImagesBean> images;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getNeed_people() {
            return need_people;
        }

        public void setNeed_people(int need_people) {
            this.need_people = need_people;
        }

        public int getJoin_people() {
            return join_people;
        }

        public void setJoin_people(int join_people) {
            this.join_people = join_people;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public Object getWin_code() {
            return win_code;
        }

        public void setWin_code(Object win_code) {
            this.win_code = win_code;
        }

        public int getIs_end() {
            return is_end;
        }

        public void setIs_end(int is_end) {
            this.is_end = is_end;
        }

        public int getIs_begin() {
            return is_begin;
        }

        public void setIs_begin(int is_begin) {
            this.is_begin = is_begin;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public Object getDeleted_at() {
            return deleted_at;
        }

        public void setDeleted_at(Object deleted_at) {
            this.deleted_at = deleted_at;
        }

        public ArrayList<ImagesBean> getImages() {
            return images;
        }

        public void setImages(ArrayList<ImagesBean> images) {
            this.images = images;
        }

        public static class ImagesBean implements Parcelable {
            /**
             * img_id : 4
             * foreign_id : 31
             * img_url : /uploads/images/shop//image_1546495695_wZP82IPaUm.jpg
             */

            private int img_id;
            private int foreign_id;
            private String img_url;

            public int getImg_id() {
                return img_id;
            }

            public void setImg_id(int img_id) {
                this.img_id = img_id;
            }

            public int getForeign_id() {
                return foreign_id;
            }

            public void setForeign_id(int foreign_id) {
                this.foreign_id = foreign_id;
            }

            public String getImg_url() {
                return img_url;
            }

            public void setImg_url(String img_url) {
                this.img_url = img_url;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.img_id);
                dest.writeInt(this.foreign_id);
                dest.writeString(this.img_url);
            }

            public ImagesBean() {
            }

            protected ImagesBean(Parcel in) {
                this.img_id = in.readInt();
                this.foreign_id = in.readInt();
                this.img_url = in.readString();
            }

            public static final Parcelable.Creator<ImagesBean> CREATOR = new Parcelable.Creator<ImagesBean>() {
                @Override
                public ImagesBean createFromParcel(Parcel source) {
                    return new ImagesBean(source);
                }

                @Override
                public ImagesBean[] newArray(int size) {
                    return new ImagesBean[size];
                }
            };
        }
    }
}
